﻿@model Dal.Entities.Doc3
@{
    Layout = null;
    ViewBag.Nav = 2;
    ViewBag.Menu = 3;
    ViewBag.PassAudit = (Model == null ? false : Model.StatusAudit == 1 ? true : false);
    ViewBag.HasQuestion = Web.Controllers.Common.HasQuestion((int)ViewBag.DocID, 3);
    int ti = 1;
}
@helper 
 textbox(string name, string value, int index)
    {
        string box = string.Empty;
        if (!string.IsNullOrWhiteSpace(value))
        {
            var array = value.Split(',');
            if (array.Length > index)
            {
                box = array[index];
            }
        }
    @Html.TextBox(name, box);
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>病例录入</title>
    @Html.Partial("meta")
</head>
<body id="b_main">
    @Html.Partial("header")
    <!--/end #header-->
    <div id="wrapper">
        <!--holds pretty much everything-->
        @Html.Partial("menu")
        <!--/end #menu_main-->
        <div id="content">
            @Html.Partial("nav")
            @using (Html.BeginForm("edit3", "doc", FormMethod.Post, new { @class = "broom_form", id = "form1", style = "margin-left: 30px;" }))
            {
                @Html.HiddenFor(i => i.DocID)
                if (ViewBag.Result != null)
                {
                    if (ViewBag.Result == true)
                    {
                <div class="notification confirm">
                    <em>
                        <img src="/assets/img/icons/tick_circle.png" alt="" />操作成功 </em>
                </div>
                    }
                }
                if (ViewBag.DocType == 1)
                {
                <table cellspacing="0" summary="table" class="broom_table" width="90%">
                    <tbody>
                        <tr class="odd">
                            <td colspan="4" class="titlebold">
                                <span>血糖监测情况及胰岛素调整</span>
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                1
                            </td>
                            <td>
                                起始治疗剂量：诺和平睡前 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.BeforeSleep, new { @class = "inputbox" })
                                U
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "BeforeSleep", 3, "起始治疗剂量：诺和平睡前"))
                            </td>
                        </tr>
                    </tbody>
                </table>
                }
                else
                {
                <table cellspacing="0" summary="table" class="broom_table" width="90%">
                    <tbody>
                        <tr class="odd">
                            <td class="titlebold">
                                <span>1</span>
                            </td>
                            <td colspan="4" class="titlebold">
                                <span>血糖监测情况及胰岛素剂量调整</span>
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                (1)
                            </td>
                            <td colspan="3">
                                起始治疗剂量：诺和平睡前
                            </td>
                        </tr>
                        <tr class="odd">
                            <td>
                            </td>
                            <td>
                                诺和锐早餐前 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.BeforeBreakfast_2, new { @class = "inputbox" }) U
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "BeforeBreakfast_2", 3, "诺和锐早餐前"))
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                            </td>
                            <td>
                                诺和锐午餐前 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.BeforeLunch_2, new { @class = "inputbox" }) U
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "BeforeLunch_2", 3, "诺和锐午餐前"))
                            </td>
                        </tr>
                        <tr class="odd">
                            <td>
                            </td>
                            <td>
                                诺和锐晚餐前 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.BeforeDinner_2, new { @class = "inputbox" }) U
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "BeforeDinner_2", 3, "诺和锐晚餐前"))
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                            </td>
                            <td>
                                诺和平睡前 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.BeforeSleep, new { @class = "inputbox" }) U
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "BeforeSleep", 3, "诺和平睡前"))
                            </td>
                        </tr>
                    </tbody>
                </table>
                }
                <br />
                <br />
                <!--/form acts as separator - stroke on top-->
                <span class="titlebold">表一、胰岛素剂量调整表<br />
                    <br />
                </span>
                <table cellspacing="0" summary="table" class="broom_table smallinputbroom_table"
                    width="90%">
                    <tr class="even">
                        <td rowspan="2">
                            住院时间
                        </td>
                        <td colspan="4" class="titlebold">
                            胰岛素剂量（U）
                        </td>
                    </tr>
                    <tr class="odd titlebold">
                        <td>
                            早餐前
                        </td>
                        <td>
                            午餐前
                        </td>
                        <td>
                            晚餐前
                        </td>
                        <td>
                            诺和平剂量
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第1天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 0)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 0)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 0)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 0)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第2天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 1)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 1)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 1)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 1)
                            U
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第3天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 2)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 2)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 2)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 2)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第4天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 3)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 3)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 3)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 3)
                            U
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第5天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 4)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 4)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 4)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 4)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第6天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 5)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 5)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 5)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 5)
                            U
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第7天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 6)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 6)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 6)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 6)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第8天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 7)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 7)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 7)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 7)
                            U
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第9天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 8)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 8)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 8)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 8)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第10天
                        </td>
                        <td>
                            @textbox("T1BeforeBreakfastArray", Model == null ? "" : Model.T1BeforeBreakfastArray, 9)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeLunchArray", Model == null ? "" : Model.T1BeforeLunchArray, 9)
                            U
                        </td>
                        <td>
                            @textbox("T1BeforeDinnerArray", Model == null ? "" : Model.T1BeforeDinnerArray, 9)
                            U
                        </td>
                        <td>
                            @textbox("T1NuoHePingArray", Model == null ? "" : Model.T1NuoHePingArray, 9)
                            U
                        </td>
                    </tr>
                </table>
                <!--/form acts as separator - stroke on top-->
                <span class="titlebold">
                    <br />
                    <br />
                    表二、血糖监测情况<br />
                    <br />
                </span>
                <table cellspacing="0" summary="table" class="broom_table smallinputbroom_table"
                    width="100%">
                    <tr class="even">
                        <td rowspan="2">
                            住院时间
                        </td>
                        <td colspan="7" class="titlebold">
                            血糖值（mmol/L）
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            空腹
                        </td>
                        <td>
                            早餐后
                        </td>
                        <td>
                            午餐前
                        </td>
                        <td>
                            午餐后
                        </td>
                        <td>
                            晚餐前
                        </td>
                        <td>
                            晚餐后
                        </td>
                        <td>
                            睡前
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第1天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 0)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 0)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 0)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 0)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 0)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 0)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 0)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第2天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 1)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 1)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 1)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 1)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 1)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 1)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 1)
                            U
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第3天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 2)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 2)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 2)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 2)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 2)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 2)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 2)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第4天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 3)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 3)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 3)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 3)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 3)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 3)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 3)
                            U
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第5天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 4)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 4)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 4)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 4)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 4)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 4)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 4)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第6天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 5)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 5)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 5)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 5)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 5)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 5)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 5)
                            U
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第7天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 6)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 6)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 6)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 6)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 6)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 6)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 6)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第8天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 7)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 7)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 7)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 7)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 7)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 7)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 7)
                            U
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            第9天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 8)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 8)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 8)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 8)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 8)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 8)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 8)
                            U
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            第10天
                        </td>
                        <td>
                            @textbox("T2EmptyArray", Model == null ? "" : Model.T2EmptyArray, 9)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterBreakfastArray", Model == null ? "" : Model.T2AfterBreakfastArray, 9)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeLunchArray", Model == null ? "" : Model.T2BeforeLunchArray, 9)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterLunchArray", Model == null ? "" : Model.T2AfterLunchArray, 9)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeDinnerArray", Model == null ? "" : Model.T2BeforeDinnerArray, 9)
                            U
                        </td>
                        <td>
                            @textbox("T2AfterDinnerArray", Model == null ? "" : Model.T2AfterDinnerArray, 9)
                            U
                        </td>
                        <td>
                            @textbox("T2BeforeSleep", Model == null ? "" : Model.T2BeforeSleep, 9)
                            U
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                if (ViewBag.DocType == 1)
                {
                <table cellspacing="0" summary="table" class="broom_table smallinputbroom_table"
                    width="100%">
                    <tr class="even">
                        <td>
                            2
                        </td>
                        <td>
                            如果口服药治疗方案有变化，请简单说明
                        </td>
                        <td class="titlebold">
                            @Html.TextAreaFor(i => i.Introduce)
                        </td>
                        <td class="titlebold">
                            @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "Introduce", 3, "如果口服药治疗方案有变化，请简单说明"))
                        </td>
                    </tr>
                </table>
                }
                else
                {
                <table cellspacing="0" summary="table" class="broom_table smallinputbroom_table"
                    width="100%">
                    <tr class="even">
                        <td>
                        </td>
                        <td>
                            如果口服药治疗方案有变化，请简单说明
                        </td>
                        <td class="titlebold">
                            @Html.TextAreaFor(i => i.Introduce)
                        </td>
                        <td class="titlebold">
                            @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "Introduce", 3, "如果口服药治疗方案有变化，请简单说明"))
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            2
                        </td>
                        <td>
                            调整后治疗方案 <span style="color: Red">*</span>
                        </td>
                        <td class="titlebold">
                            @{
                    string AdjustCase_2 = string.Empty;
                    if (Model != null && Model.AdjustCase_2 != null)
                    {
                        AdjustCase_2 = Model.AdjustCase_2;
                    }
                    string item = "饮食、运动"; }
                            <input type="checkbox" name="AdjustCase_2" value="@item" @(AdjustCase_2.Contains(item) ? "checked = \"checked\"" : "") />@item<br />
                            @{item = "口服药物";}
                            <input type="checkbox" name="AdjustCase_2" value="@item" @(AdjustCase_2.Contains(item) ? "checked = \"checked\"" : "") />@item<br />
                            @{item = "胰岛素";}
                            <input id="cbcaseyds" onclick="toggle('divcbcaseyds')" type="checkbox" name="AdjustCase_2" value="@item" @(AdjustCase_2.Contains(item) ? "checked = \"checked\"" : "") />@item<br />
                            <div id="divcbcaseyds" style="padding-left: 30px">
                                诺和锐早餐前 @Html.TextBoxFor(i => i.AdditionNuoHeRuiBeforeBreakfast) U
                                <br />
                                诺和锐早餐前 @Html.TextBoxFor(i => i.AdditionNuoHeRuiBeforeLunch) U
                                <br />
                                诺和锐早餐前 @Html.TextBoxFor(i => i.AdditionNuoHeRuiBeforeDinner) U
                                <br />
                                诺和平 @Html.TextBoxFor(i => i.AdditionNuoHePing) U
                            </div>
                            <script type="text/javascript">
                                associate('cbcaseyds', 'divcbcaseyds');
                            </script>
                            @{item = "其他";}
                            <input id="cbcaseqita" onclick="toggle('divcbcaseqita')" type="checkbox" name="AdjustCase_2" value="@item" @(AdjustCase_2.Contains(item) ? "checked = \"checked\"" : "") />@item
                            <div id="divcbcaseqita" style="padding-left: 30px">
                                请说明 @Html.TextBoxFor(i => i.AdditionCaseQiTa)</div>
                            <script type="text/javascript">
                                associate('cbcaseqita', 'divcbcaseqita');
                            </script>
                        </td>
                        <td class="titlebold">
                            @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "AdjustCase_2", 3, "调整后治疗方案 *"))
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            3
                        </td>
                        <td colspan="3">
                            患者治疗反馈
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            (1)
                        </td>
                        <td>
                            治疗效果评价 <span style="color: Red">*</span>
                        </td>
                        <td>
                            @Html.RadioButtonFor(i => i.Effect_2, true) 满意
                            @Html.RadioButtonFor(i => i.Effect_2, false) 不满意
                        </td>
                        <td>
                            @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "Effect_2", 3, "治疗效果评价 *"))
                        </td>
                    </tr>
                    <tr class="even">
                        <td>
                            (2)
                        </td>
                        <td>
                            是否出现过低血糖 <span style="color: Red">*</span>
                        </td>
                        <td>
                            @Html.RadioButtonFor(i => i.HasLowBloodSugar_2, "否", new { onclick = "hide('divHasLowBloodSugar_2')" })
                            否<br />
                            @Html.RadioButtonFor(i => i.HasLowBloodSugar_2, "是", new { onclick = "show('divHasLowBloodSugar_2')", id = "radiolow" })
                            是
                            <div id="divHasLowBloodSugar_2" style="padding-left: 30px">
                                发生频率 @Html.TextBoxFor(i => i.AdditionLowBloodSugarFrequence) 次/周</div>
                            <script type="text/javascript">
                                associate('radiolow', 'divHasLowBloodSugar_2');
                            </script>
                        </td>
                        <td>
                            @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "HasLowBloodSugar_2", 3, "是否出现过低血糖 *"))
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            (3)
                        </td>
                        <td>
                            患者满意度：与短效人胰岛素相比 <span style="color: Red">*</span>
                        </td>
                        <td>
                            @Html.RadioButtonFor(i => i.Satisfied_2, "否") 否
                            @Html.RadioButtonFor(i => i.Satisfied_2, "是") 是
                        </td>
                        <td>
                            @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "Satisfied_2", 3, "患者满意度：与短效人胰岛素相比 *"))
                        </td>
                    </tr>
                </table>
                }
                if (ViewBag.DocType == 1)
                {
                    ViewBag.HideButton2 = true;
                }
                
                @Html.Partial("savebutton")
            }
            <!--/end .tabber-->
        </div>
    </div>
    <div class="clear">
    </div>
    @Html.Partial("questionScript")
    @if ((ViewBag.Status == "edit" || ViewBag.Status == "") && ViewBag.PassAudit == false)
    {
        <script type="text/javascript">
            $(document).ready(function () {
                $("#form1").validate({
                    rules: {
                        AdjustCase_2: { required: true },
                        BeforeBreakfast_2: { required: true, number: true },
                        BeforeDinner_2: { required: true, number: true },
                        BeforeLunch_2: { required: true, number: true },
                        BeforeSleep: { required: true, number: true },
                        Effect_2: { required: true },
                        HasLowBloodSugar_2: { required: true },
                        Satisfied_2: { required: true },
                        T1BeforeBreakfastArray: { number: true },
                        T1BeforeLunchArray: { number: true },
                        T1BeforeDinnerArray: { number: true },
                        T1NuoHePingArray: { number: true },
                        T2EmptyArray: { number: true },
                        T2AfterBreakfastArray: { number: true },
                        T2BeforeLunchArray: { number: true },
                        T2AfterLunchArray: { number: true },
                        T2BeforeDinnerArray: { number: true },
                        T2AfterDinnerArray: { number: true },
                        T2BeforeSleep: { number: true }
                    }
                });
            });
        </script>
    }
</body>
</html>
